<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>点差交易</title>

    <link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap.min.css') }}" >
    <link href="{{ asset('css/card.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ asset('css/fonts/iconfont.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ asset('css/main.css') }}" rel="stylesheet" type="text/css">

    <script src="{{ asset('packages/bootstrap/jquery.min.js') }}" type="text/javascript" charset="utf-8"></script>
    <script src="{{ asset('js/laravel-sms.js') }}"></script>
	<script src="{{ asset('javascript/vue.min.js') }}"></script>
	
    @yield('style')
    <style>
        .fa-btn {
            margin-right: 6px;
        }

        /*禁止选中文字*/  
        body{  
        -moz-user-select: none; /*火狐*/  
        -webkit-user-select: none; /*webkit浏览器*/  
        -ms-user-select: none; /*IE10*/  
        -khtml-user-select: none; /*早期浏览器*/  
        user-select: none;  
        } 
  
    </style>
</head>
<body id="app-layout">
    <nav class="navbar navbar-default navbar-static-top navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">

                <!-- Collapsed Hamburger -->
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
                    <span class="sr-only">Toggle Navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>

                <!-- Branding Image -->
                <a class="navbar-brand" href="{{ url('/') }}">
                    点差交易系统
                </a>
            </div>

            <div class="collapse navbar-collapse" id="app-navbar-collapse">
                <!-- Left Side Of Navbar -->
                <ul class="nav navbar-nav">
                    <!-- <li><a href="{{ url('/home') }}">主页</a></li> -->
                </ul>

                <!-- Right Side Of Navbar -->
                <ul class="nav navbar-nav navbar-right">
                    <!-- Authentication Links -->
                    @if (Auth::guest())
                        <li><a href="{{ url('/login') }}">登录</a></li>
                        <li><a href="{{ url('/register') }}">注册</a></li>
                    @else
                        <li><a href="{{ url('/home') }}">首页</a></li>
                        <!-- <li><a href="{{ url('/addstockactivity') }}">发起活动</a></li> -->
                        <li><a href="{{ url('/recharge') }}">充值</a></li>
                        <li><a href="{{ url('/withdrawals') }}">提现</a></li>
                        <li><a href="{{ url('/news') }}">公告</a></li>
                        <li><a href="{{ url('/userinfo') }}">个人中心</a></li>
                        <li class="dropdown">

                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                                {{ Auth::user()->name }} <span class="caret"></span>
                            </a>

                            <ul class="dropdown-menu" role="menu">
                           
							<!-- <li><a href="{{ url('/option') }}">期权</a></li> -->
							<!-- <li><a href="{{ url('/business/roul') }}">玩法规则</a></li> -->
                            <li>
                                        <a href="{{ url('/logout') }}"
                                            onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                            退出
                                        </a>

                                        <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form>
                                    </li>
								
                            </ul>
                        </li>
                    @endif
                </ul>
            </div>
        </div>
    </nav>

    @yield('content')
    
    @section('footer')
    
     @show
    <script src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>
   
    
    @yield('js')
    
    <script type='text/javascript'>  
    //这段js要放在页面最下方  
    //var h = window.innerHeight,w=window.innerWidth;  
    //禁用右键 （防止右键查看源代码）  
    //window.oncontextmenu=function(){return false;}  
    //在本网页的任何键盘敲击事件都是无效操作 （防止F12和shift+ctrl+i调起开发者工具）  
    // window.onkeydown = window.onkeyup = window.onkeypress = function () {  
    //     window.event.returnValue = false;  
    //     return false;  
    // }  
    //如果用户在工具栏调起开发者工具，那么判断浏览器的可视高度和可视宽度是否有改变，如有改变则关闭本页面  
    // window.onresize = function () {  
    //     if (h != window.innerHeight||w!=window.innerWidth){  
    //         window.close();  
    //         window.location = "about:blank";  
    //     }  
    // }  
    /*好吧，你的开发者工具是单独的窗口显示，不会改变原来网页的高度和宽度， 
    但是你只要修改页面元素我就重新加载一次数据,让你无法修改页面元素（不支持IE9以下浏览器）*/  
    // if(window.addEventListener){  
    // window.addEventListener("DOMCharacterDataModified", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMAttributeNameChanged", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMCharacterDataModified", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMElementNameChanged", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMNodeInserted", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMNodeInsertedIntoDocument", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMNodeRemoved", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMNodeRemovedFromDocument", function(){window.location.reload();}, true);  
    // window.addEventListener("DOMSubtreeModified", function(){window.location.reload();}, true);  
    // }  
       
    //压缩后的代码  
    //var h=window.innerHeight,w=window.innerWidth;window.oncontextmenu=function(){return!1},window.onkeydown=window.onkeyup=window.onkeypress=function(){return window.event.returnValue=!1,!1},window.onresize=function(){(h!=window.innerHeight||w!=window.innerWidth)&&(window.close(),window.location="about:blank")},window.addEventListener&&(window.addEventListener("DOMCharacterDataModified",function(){window.location.reload()},!0),window.addEventListener("DOMAttributeNameChanged",function(){window.location.reload()},!0),window.addEventListener("DOMCharacterDataModified",function(){window.location.reload()},!0),window.addEventListener("DOMElementNameChanged",function(){window.location.reload()},!0),window.addEventListener("DOMNodeInserted",function(){window.location.reload()},!0),window.addEventListener("DOMNodeInsertedIntoDocument",function(){window.location.reload()},!0),window.addEventListener("DOMNodeRemoved",function(){window.location.reload()},!0),window.addEventListener("DOMNodeRemovedFromDocument",function(){window.location.reload()},!0),window.addEventListener("DOMSubtreeModified",function(){window.location.reload()},!0))  
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    </script>  

</body>
</html>
